package com.ossjk.oa.system.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 附件表
 * </p>
 *
 * @author chair
 * @since 2020-05-24
 */
public class Attachment extends BaseEntity<Attachment> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 员工编号
     */
    @TableField("eid")
    private String eid;
    @TableField("url")
    private String url;
    /**
     * 文件名
     */
    @TableField("file")
    private String file;
    /**
     * 状态 1-业务数据、2-系统数据
     */
    @TableField("state")
    private BigDecimal state;
    /**
     * 逻辑删除 1-未删除、2-已删除
     */
    @TableField("isdelete")
    private BigDecimal isdelete;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public BigDecimal getState() {
        return state;
    }

    public void setState(BigDecimal state) {
        this.state = state;
    }

    public BigDecimal getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(BigDecimal isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Attachment{" +
        ", id=" + id +
        ", eid=" + eid +
        ", url=" + url +
        ", file=" + file +
        ", state=" + state +
        ", isdelete=" + isdelete +
        "}";
    }
}
